﻿@model UserInfoViewModel
@{
    ViewBag.Title = "管理员信息";
}
<form method="post">
    @if (ViewContext.ModelState.ErrorCount > 0)
    {
        <div asp-validation-summary="All" class="alert alert-danger"></div>
    }
    else if (TempData["Submit"] != null)
    {
        <div class="alert alert-success">
            <h4><i class="fa fa-check-circle"></i> 保存成功</h4>
        </div>
    }

        <div class="form-group">
            <div class="row">
                <label class="col-2 text-right" asp-for="Email"></label>
                <input class="form-control col-4" asp-for="Email" />
                <span class="col text-muted">系统会发送信息到此邮箱</span>
            </div>
            <div class="row">
                <span asp-validation-for="Email" class="text-danger offset-2"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="row">
                <label class="col-2 text-right" asp-for="Mobile"></label>
                <input class="form-control col-4" asp-for="Mobile" />
                <span class="col text-muted">系统会发送信息到此手机号码</span>
            </div>
            <div class="row">
                <span asp-validation-for="Mobile" class="text-danger offset-2"></span>
            </div>
        </div>
    <div class="form-group">
        <button class="btn btn-primary" type="submit">保存</button>
    </div>
</form>
@section scripts{
    @Html.Partial("/Pages/Shared/_ValidationScripts.cshtml")
}